const TOKEN_KEY = 'token'
// 获取token
export const getToken = ()=>{
  return localStorage.getItem(TOKEN_KEY)
}

// 设置token
export const setToken = (token:string)=>{
  // expires设置存储时间 默认值是天数
  localStorage.setItem(TOKEN_KEY,token)
}

// 删除token
export const removeToken = ()=>{
  localStorage.removeItem(TOKEN_KEY)
}
